<?
    session_start(); 
    
    header('Content-Type: text/html; charset=ISO-8859-1', true);
    
    // Includes
    require('config/config.php');
    require('config/path.php');
    
    require(SYSTEM_PATH .'model.php');
    require(SYSTEM_PATH .'view.php');
    require(SYSTEM_PATH .'controller.php');
    require(SYSTEM_PATH .'pip.php');
    require(SYSTEM_LIB_PATH .'doctrine/Doctrine.php');
    require(SYSTEM_LIB_PATH .'smarty/Smarty.class.php');
    require(SYSTEM_LIB_PATH .'smarty/SmartyPaginate.class.php');
    require(SYSTEM_LIB_PATH .'i18n/i18n.php');
    require(SYSTEM_LIB_PATH .'Upload.php');
    require(SYSTEM_LIB_PATH .'Gapi.php');
    
    
    // Define base URL
    global $config;
    define('BASE_URL', $config['base_url']);